import https from "./http"
import { React, useState, useEffect } from 'react'

const Pic = () => {
    const [pic, setPic] = useState(null);
    useEffect(() => {
        https('Photo/getAll', "get", res => {
            // console.log(res)
            setPic(res.data.length)
        });
    }, []);
    useEffect(() => { },
        [pic]);
    return (pic)
}

export default Pic
